import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const elementIcons = []
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    let value = transElIconName(key)
    let item = {}
    item.label = key;
    item.value = value
    elementIcons.push(item)
}

function transElIconName(iconName) {
    return 'el-icon' + iconName.replace(/[A-Z]/g, (match) => '-' + match.toLowerCase())
}

const iconTabs = [
    {
        label: "element-icon",
        list: elementIcons
    },
]
export default iconTabs
